from django.urls import re_path

from . import views


urlpatterns = [
    re_path(r'^tag/(?P<tag>\w+)$', views.SearchTagView.as_view()),  # 按标签搜索文章
    re_path(r'^keyword/(?P<keyword>\w+)$', views.SearchKeywordView.as_view())  # 按关键字搜索文章
]
